<form class="form-horizontal w5c-form demo-form" role="form"
      w5c-form-validate="vm.validateOptions" novalidate name="validateForm">
     <tabset>
    <tab heading="基础数据">
    
    <div class="form-group">
        <label class="col-sm-2 control-label">邮箱</label>

        <div class="col-sm-10">
            <input type="email" name="email" ng-model="entity.email" required="" class="form-control"
                   placeholder="输入邮箱">
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-2 control-label">用户名</label>

        <div class="col-sm-10">
            <input required="" ng-pattern="/^[A-Za-z]{1}[0-9A-Za-z_]{1,19}$/" ng-model="entity.name"
                   class="form-control" name="username" placeholder="输入用户名">
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-2 control-label">密码</label>

        <div class="col-sm-10">
            <input type="password" required="" ng-model="entity.password" name="password"
                   class="form-control" ng-minlength="5" ng-maxlength="15"
                   placeholder="输入密码">
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-2 control-label">数字</label>

        <div class="col-sm-10">
            <input type="number" required="" ng-model="entity.number" name="number" class="form-control"
                   placeholder="输入数字">
        </div>
        </div>
        <div class="form-group" ng-show="validateForm.$errors.length > 0 && vm.showErrorType == 2">
        <label class="col-sm-2 control-label"></label>

        <div class="col-sm-10">
            <div class="alert alert-danger">{{validateForm.$errors[0]}}</div>
        </div>
    </div>

    <div class="form-group">
        <div class="col-sm-offset-2 col-sm-10">
            <button type="buttom" w5c-form-submit="vm.saveEntity()" class="btn btn-success"> 验证</button>
        </div>
    </div>
         </tab>
         <tab heading="扩展数据">
          <div class="form-group">
        <label class="col-sm-2 control-label">数字</label>

        <div class="col-sm-10">
            <input type="number" required="" ng-model="entity.number1" name="number" class="form-control"
                   placeholder="输入数字">
        </div>
        </div>
         </tab>
     <tabset>
     
    
   
    
</form>